<!--
*@Author: QWP
*@Description: 查询按钮
*@Date: 2024-07-08 14:20:00
-->
<template>
  <a-col>
    <a-space>
      <u-icon-button @click="emits('click', 'search')" 
        v-if="!hides.includes('search')">查询
      </u-icon-button>
      <u-icon-button itype="export" @click="emits('click', 'export')" 
        v-if="!hides.includes('export')">导出
      </u-icon-button>
      <slot></slot>
    </a-space>
  </a-col>
</template>

<script lang='ts' setup>
defineOptions({
  name: 'u-search-button'
})

interface Props {
  hides: string[]
}
withDefaults(defineProps<Props>(), {
  hides: ['export']
})

const emits = defineEmits(['click'])

</script>